[PATCH] add POCL_EXPORT to additional symbols needed if hardening is enabled
authorAndreas Beckmann <anbe@debian.org>
Wed, 13 Oct 2021 14:23:53 +0000 (16:23 +0200)
committerAndreas Beckmann <anbe@debian.org>
Fri, 15 Oct 2021 16:22:36 +0000 (17:22 +0100)
Gbp-Pq: Name 1015-add-POCL_EXPORT-to-additional-symbols-needed-if-hard.patch

lib/CL/pocl_util.h

index eeceb6b581601faa25d540e708f173fe91dd3a3e..6fa860c9f1ae13220c9e3f8d8fbdd61b2b8838dd 100644 (file)
@@ -107,8 +107,10 @@ cl_int pocl_create_command_migrate (_cl_command_node **cmd,
 void pocl_command_enqueue (cl_command_queue command_queue,
                           _cl_command_node *node);
 
+POCL_EXPORT
 int pocl_alloc_or_retain_mem_host_ptr (cl_mem mem);
 
+POCL_EXPORT
 int pocl_release_mem_host_ptr (cl_mem mem);
 
 /* does several sanity checks on buffer & given memory region */